package com.aigou.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.time.LocalDateTime;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

/**
 * <p>
 * 订单明细
 * </p>
 *
 * @author cw
 * @since 2024-05-14
 */
@TableName("tb_order")
@ApiModel(value = "Order对象", description = "订单明细")
public class Order implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    private String orderSn;

    private Integer price;

    private Integer priceChengjiao;

    private Integer priceYouhui;

    private LocalDateTime createTime;

    @ApiModelProperty("订单状态：0：已下单，1：正常，2：已取消，3：已关闭，4：退款中，5：已退款")
    private Integer status;

    @ApiModelProperty("支付状态，0：未支付，1：已支付，2：已关闭")
    private Integer payStatus;

    @ApiModelProperty("删除状态：0：正常，1：已删除")
    private Integer isDelete;

    @ApiModelProperty("物流状态：0：未发货，1：已发货，2：已收货，3：丢失")
    private Integer wuliuStatus;

    private LocalDateTime payTime;

    private Integer uid;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getOrderSn() {
        return orderSn;
    }

    public void setOrderSn(String orderSn) {
        this.orderSn = orderSn;
    }

    public Integer getPrice() {
        return price;
    }

    public void setPrice(Integer price) {
        this.price = price;
    }

    public Integer getPriceChengjiao() {
        return priceChengjiao;
    }

    public void setPriceChengjiao(Integer priceChengjiao) {
        this.priceChengjiao = priceChengjiao;
    }

    public Integer getPriceYouhui() {
        return priceYouhui;
    }

    public void setPriceYouhui(Integer priceYouhui) {
        this.priceYouhui = priceYouhui;
    }

    public LocalDateTime getCreateTime() {
        return createTime;
    }

    public void setCreateTime(LocalDateTime createTime) {
        this.createTime = createTime;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    public Integer getPayStatus() {
        return payStatus;
    }

    public void setPayStatus(Integer payStatus) {
        this.payStatus = payStatus;
    }

    public Integer getIsDelete() {
        return isDelete;
    }

    public void setIsDelete(Integer isDelete) {
        this.isDelete = isDelete;
    }

    public Integer getWuliuStatus() {
        return wuliuStatus;
    }

    public void setWuliuStatus(Integer wuliuStatus) {
        this.wuliuStatus = wuliuStatus;
    }

    public LocalDateTime getPayTime() {
        return payTime;
    }

    public void setPayTime(LocalDateTime payTime) {
        this.payTime = payTime;
    }

    public Integer getUid() {
        return uid;
    }

    public void setUid(Integer uid) {
        this.uid = uid;
    }

    @Override
    public String toString() {
        return "Order{" +
            "id = " + id +
            ", orderSn = " + orderSn +
            ", price = " + price +
            ", priceChengjiao = " + priceChengjiao +
            ", priceYouhui = " + priceYouhui +
            ", createTime = " + createTime +
            ", status = " + status +
            ", payStatus = " + payStatus +
            ", isDelete = " + isDelete +
            ", wuliuStatus = " + wuliuStatus +
            ", payTime = " + payTime +
            ", uid = " + uid +
        "}";
    }
}
